 
<div class="mws-panel grid_8 mws-collapsible  periodexams">
  <div class="mws-panel-header">
     <span class="mws-i-24 i-table-1"><?php  echo __('Periodexam'); ?></span>
   <div class="mws-collapse-button mws-inset"><span></span></div>
 </div>
<div class="mws-panel-body" style="display: block; direction:rtl;">
  <div class="right_direction"> 
  <table class="mws-table">
      <tbody>
		<tr><td class="left_header"><?php echo __('Id'); ?></td>
		<td>
			<?php echo h($periodexam['Periodexam']['id']); ?>
			&nbsp;
		</td></tr>
		<tr><td class="left_header"><?php echo __('Name'); ?></td>
		<td>
			<?php echo h($periodexam['Periodexam']['name']); ?>
			&nbsp;
		</td></tr>
		<tr><td class="left_header"><?php echo __('Uniyear'); ?></td>
		<td>
			<?php echo $this->Html->link($periodexam['Uniyear']['name'], array('controller' => 'uniyears', 'action' => 'view', $periodexam['Uniyear']['id'])); ?>
			&nbsp;
		</td></tr>
		<tr><td class="left_header"><?php echo __('Type'); ?></td>
		<td>
			<?php echo h($periodexam['Periodexam']['type']); ?>
			&nbsp;
		</td></tr>
		<tr><td class="left_header"><?php echo __('Branch'); ?></td>
		<td>
			<?php echo $this->Html->link($periodexam['Branch']['name'], array('controller' => 'branches', 'action' => 'view', $periodexam['Branch']['id'])); ?>
			&nbsp;
		</td></tr>
		<tr><td class="left_header"><?php echo __('Term'); ?></td>
		<td>
			<?php echo $this->Html->link($periodexam['Term']['name'], array('controller' => 'terms', 'action' => 'view', $periodexam['Term']['id'])); ?>
			&nbsp;
		</td></tr>
		<tr><td class="left_header"><?php echo __('Start Date'); ?></td>
		<td>
			<?php echo h($periodexam['Periodexam']['start_date']); ?>
			&nbsp;
		</td></tr>
		<tr><td class="left_header"><?php echo __('End Date'); ?></td>
		<td>
			<?php echo h($periodexam['Periodexam']['end_date']); ?>
			&nbsp;
		</td></tr>
		<tr><td class="left_header"><?php echo __('Place'); ?></td>
		<td>
			<?php echo h($periodexam['Periodexam']['place']); ?>
			&nbsp;
		</td></tr>
		<tr><td class="left_header"><?php echo __('User'); ?></td>
		<td>
			<?php echo $this->Html->link($periodexam['User']['id'], array('controller' => 'users', 'action' => 'view', $periodexam['User']['id'])); ?>
			&nbsp;
		</td></tr>
		<tr><td class="left_header"><?php echo __('Created'); ?></td>
		<td>
			<?php echo h($periodexam['Periodexam']['created']); ?>
			&nbsp;
		</td></tr>
		<tr><td class="left_header"><?php echo __('Modified'); ?></td>
		<td>
			<?php echo h($periodexam['Periodexam']['modified']); ?>
			&nbsp;
		</td></tr>
	</tbody>
	</table>
</div>
</div>

<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Periodexam'), array('action' => 'edit', $periodexam['Periodexam']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete Periodexam'), array('action' => 'delete', $periodexam['Periodexam']['id']), null, __('Are you sure you want to delete # %s?', $periodexam['Periodexam']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Periodexams'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Periodexam'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Uniyears'), array('controller' => 'uniyears', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Uniyear'), array('controller' => 'uniyears', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Branches'), array('controller' => 'branches', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Branch'), array('controller' => 'branches', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Terms'), array('controller' => 'terms', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Term'), array('controller' => 'terms', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Users'), array('controller' => 'users', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New User'), array('controller' => 'users', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Exams'), array('controller' => 'exams', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Exam'), array('controller' => 'exams', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Exams'); ?></h3>
	<?php if (!empty($periodexam['Exam'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Periodexam Id'); ?></th>
		<th><?php echo __('Subject Id'); ?></th>
		<th><?php echo __('In Date'); ?></th>
		<th><?php echo __('Emark Limit'); ?></th>
		<th><?php echo __('Emark Success'); ?></th>
		<th><?php echo __('User Id'); ?></th>
		<th><?php echo __('Created'); ?></th>
		<th><?php echo __('Modified'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($periodexam['Exam'] as $exam): ?>
		<tr>
			<td><?php echo $exam['id']; ?></td>
			<td><?php echo $exam['periodexam_id']; ?></td>
			<td><?php echo $exam['subject_id']; ?></td>
			<td><?php echo $exam['in_date']; ?></td>
			<td><?php echo $exam['emark_limit']; ?></td>
			<td><?php echo $exam['emark_success']; ?></td>
			<td><?php echo $exam['user_id']; ?></td>
			<td><?php echo $exam['created']; ?></td>
			<td><?php echo $exam['modified']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'exams', 'action' => 'view', $exam['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'exams', 'action' => 'edit', $exam['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'exams', 'action' => 'delete', $exam['id']), null, __('Are you sure you want to delete # %s?', $exam['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Exam'), array('controller' => 'exams', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
